﻿@model  IEnumerable<Home.Domain.Entities.QuoteProduct>
@using Home.WebUI.Models.HtmlHelpers
@{
    ViewBag.Title = "青神园林工程有限公司CMS管理系统";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
    string controllerName = Request.RequestContext.RouteData.Values["controller"].ToString();
}
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	@{Html.RenderPartial("_Manager");}
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
            <div class="head">
				                    <h2>@(ViewBag.ColumnTitle)列表</h2>
                                     <ul class="filter">
                       <li><form action="@Url.Action("QuoteSubmit")" method="post">@Html.HiddenFor(model=>model.First().QuoteId) @if (Model.First().QuoteEntitis.State == 0)
                                                                                                                                 {
                                                                                                                                     <input type="submit" onclick="return confirm('您确认要发布报价吗？')" value="确认发布" class="formbutton" style="padding: 1px 6px;" />
                                                                                                                                 }
                                                                                                                                 else {
                                                                                                                                     @:已发布
                                                                                                                                 } </form> </li>
                   </ul> 

				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr>
                        <th width="150">ID</th>
                        <th width="200">名称</th>
                        <th width="300" style="white-space: nowrap">描述</th>
                        <th width="200">价格</th>
                    </tr>
                     @{int beijing = 1;
                       foreach (var item in Model)
                       {
                           beijing++;
				    <tr @(beijing % 2 == 1 ? null : Html.Raw(@"class=""alt""")) id="team-list-id-244">
						
						<td>@item.Id</td>
						<td>@item.ProductName</td>
                        <td>@item.Description</td>
						<td>@string.Format("{0:C}", item.Price)</td>
					</tr>
                       }
                       }
								
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div>
